-
Notifications
You must be signed in to change notification settings - Fork 0
Checkpoint2 objects #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: gh-pages
Are you sure you want to change the base?
Conversation
reneemeyer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Eric, I see where you were trying to go with the Class of Customer, however you made this way more complicated than it needed to be. I see that you are planning out your code, however we need to fine tune your logic. These problems - take them extremely literally. Don't add complexity.
| } | ||
|
|
||
| //make new instances of Customer. Use the keys and values listed in the assignment | ||
| let marilyn = new Customer(1, 'Marilyn Monroe', 'New York City', 'NY', 'Yellow Chair', '19.99'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All of these should be const.
| // ]; | ||
|
|
||
| //Create a new class called customer. it is made out of an id number, a name, city, state, product, and price. Include a statement that prints out the sentence required for the assignment | ||
| class Customer { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is unnecessary.
| //make new instances of Customer. Use the keys and values listed in the assignment | ||
| let marilyn = new Customer(1, 'Marilyn Monroe', 'New York City', 'NY', 'Yellow Chair', '19.99'); | ||
| let abe = new Customer(2, 'Abraham Lincoln', 'Boston', 'MA', 'Tickets', 27.00); | ||
| let john = new Customer(3, 'John F. Kennedy', 'Dallas', 'TX', 'Mustang Convertible', 2499.99); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method would require someone to physically type out all of the items in the array, what if the array changes ? What if the array had 5,000 users? You need to use a higher order loop like forEach or map that would loop through this array and print out a string in the given format for every user.
Checkpoint Rubric
This is the rubric that your instructor will use to grade your checkpoints. Please do not edit.
Checkpoint 1
Checkpoint 2
Checkpoint 3